<?

    $content=get_args("content");

    $id=get_sess_userid();


     $dbo = new dbex;
     //读写分离定义函数
     dbtarget('w',$dbServs);
     $str="select * from iweber_office where user_id=$id";
     $rs=$dbo->exeUpdate($str); 
     if(empty($rs)){
     
        $sql="insert into iweber_office(user_id,office_message)values($id,'$content')";

     }
     else{
     
        $sql="update iweber_office set office_message='$content' where user_id=".$id;
     
     }
     if($dbo->exeUpdate($sql)){
        action_return(1,"办公区信息修改成功",'');
      }
    //回应信息
        action_return(0,"办公区信息修改成功",'');


?>
